package com.sxit.myproscenium.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wcn
 * @since 2022-04-10
 */
@TableName("sys_category")
@Schema(name = "Category对象", description = "")
public class Category implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "商品分类ID")
  @TableId(value = "category_id", type = IdType.AUTO)
  private Long categoryId;

  @Schema(description = "分类名称")
  private String categoryName;

  @Schema(description = "创建时间")
  private LocalDateTime createTime;

  @Schema(description = "图片")
  private String picture;

  @Schema(description = "修改时间")
  private LocalDateTime updateTime;

  @Schema(description = " 父级")
  private Long parentId;

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

  public String getCategoryName() {
    return categoryName;
  }

  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public String getPicture() {
    return picture;
  }

  public void setPicture(String picture) {
    this.picture = picture;
  }

  public LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }

  public Long getParentId() {
    return parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  @Override
  public String toString() {
    return "Category{"
        + "categoryId="
        + categoryId
        + ", categoryName="
        + categoryName
        + ", createTime="
        + createTime
        + ", picture="
        + picture
        + ", updateTime="
        + updateTime
        + ", parentId="
        + parentId
        + "}";
  }
}
